<%--
  Created by IntelliJ IDEA.
  User: Cedar
  Date: 2019/11/29
  Time: 21:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ include file="heder.jsp" %>
<html>
<head>
    <title>登录</title>
</head>
<style>
    body {
        text-align: center;
    }

    input {
        margin: 0 10px;
        padding-left: 5px;
        outline: none;
    }

    form {
        margin-top: 80px;
    }

    .msg {
        font-size: 15px;
        color: red;
        margin-top: 10px;
    }
</style>

<body>
<form name="login" action="user/login" method="post">
    <p style="font-weight: bold;font-size: 25px">请登录</p>
    <p>用户名:<input id="userName" name="userName" placeholder="请输入用户名" required value="${userName}"></p>
    <p>密&nbsp;&nbsp; 码:<input id="password" type="password" name="password" placeholder="请输入密码" required value="${password}"></p>
    <button type="submit">登录</button>
    <div class="msg">${data}</div>
    <p><a href="register.jsp">注册</a></p>
</form>
</body>
</html>
